package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wengys123
 * @since 2018-03-13
 */
@TableName("t_order_back_record")
public class OrderBackRecord extends Model<OrderBackRecord> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 回单记录类型 1接收，2发送
     */
    private Integer type;

    private Integer edit_user;
    /**
     * 接收方
     */
    private String receiver;
    /**
     * 发送方
     */
    private String sender;
    /**
     * 1邮寄2司机带回3其他
     */
    @TableField("process_method")
    private Integer processMethod;
    private String remark;
    /**
     * 操作时间
     */
    @TableField("send_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    private Date sendTime;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;
    @TableField("receive_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    private Date receiveTime;

    private Date edit_time;

    private Integer dot_id;

    private String record_no;

    public Integer getDot_id() {
        return dot_id;
    }

    public void setDot_id(Integer dot_id) {
        this.dot_id = dot_id;
    }

    public String getRecord_no() {
        return record_no;
    }

    public void setRecord_no(String record_no) {
        this.record_no = record_no;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public Integer getProcessMethod() {
        return processMethod;
    }

    public void setProcessMethod(Integer processMethod) {
        this.processMethod = processMethod;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderBackRecord{" +
        "id=" + id +
        ", type=" + type +
        ", receiver=" + receiver +
        ", sender=" + sender +
        ", processMethod=" + processMethod +
        ", remark=" + remark +
        ", sendTime=" + sendTime +
        ", createTime=" + createTime +
        ", receiveTime=" + receiveTime +
        "}";
    }

    public Integer getEdit_user() {
        return edit_user;
    }

    public void setEdit_user(Integer edit_user) {
        this.edit_user = edit_user;
    }

    public Date getEdit_time() {
        return edit_time;
    }

    public void setEdit_time(Date edit_time) {
        this.edit_time = edit_time;
    }
}
